<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>layui</title>
    <link rel="stylesheet" href="lib/layui/css/layui.css">
    <link rel="stylesheet" href="css/layui.css">
</head>

<body>
    <!-- 登录注册框 -->
    <div class="table">
        <!-- 登录 -->
        <div class="login_box">
            <form class="layui-form" action="" id="form_login">
                <div class="table_title">登录</div>
                <!-- 账号 -->
                <div class="layui-form-item ">
                    <input type="text" name="username" required lay-verify="required" placeholder="请输入账号"
                        autocomplete="off" class="layui-input">
                </div>
                <!-- 密码 -->
                <div class="layui-form-item ">
                    <input type="password" name="password" required lay-verify="required|pwd" placeholder="请输入密码"
                        autocomplete="off" class="layui-input">
                </div>
                <!-- 登录按钮 -->
                <div class="layui-form-item">
                    <!-- 注意：表单提交按钮和普通按钮的区别，就是 lay-submit 属性 -->
                    <button class="layui-btn layui-btn-fluid layui-btn-normal" lay-submit>登录</button>
                </div>
                <div class="layui-form-item login_link">
                    <a href="javascript:;" id="link_reg">去注册账号</a>
                </div>
            </form>
        </div>
        <!-- 注册 -->
        <div class="regest_box">
            <form class="layui-form" action="" id="form_reg">
                <div class="table_title">注册</div>
                <!-- 注册账号 -->
                <div class="layui-form-item ">
                    <input type="text" name="username" required lay-verify="required" placeholder="请输入账号"
                        autocomplete="off" class="layui-input">
                </div>
                <!-- 设置密码 -->
                <div class="layui-form-item ">
                    <input type="password" name="password" required lay-verify="required|pwd" placeholder="请输入密码"
                        autocomplete="off" class="layui-input">
                </div>
                <!-- 确认密码 -->
                <div class="layui-form-item ">
                    <input type="password" name="agpasseord" required lay-verify="required|pwd|repwd"
                        placeholder="请确认密码" autocomplete="off" class="layui-input">
                </div>
                <!-- 注册按钮 -->
                <div class="layui-form-item">
                    <!-- 注意：表单提交按钮和普通按钮的区别，就是 lay-submit 属性 -->
                    <button class="layui-btn layui-btn-fluid layui-btn-normal" lay-submit>登录</button>
                </div>
                <div class="layui-form-item login_link">
                    <a href="javascript:;" id="link_login">去登陆账号</a>
                </div>
            </form>
        </div>
    </div>
    <!-- layui -->
    <script src="lib/layui/layui.all.js"></script>
    <!-- jq文件 -->
    <script src="lib/js/jquery.js"></script>
    <!-- 封装的接口 -->
    <script src="lib/js/baseAPI.js"></script>
    <!-- 自己的脚本文件 -->
    <script src="js/login.js"></script>
</body>

</html>